<?php

namespace App\Observers;

// creating, created, updating, updated, saving,
// saved,  deleting, deleted, restoring, restored

use App\Handlers\RedisHandler;
use App\Models\Task;

class MsgTaskObserver
{
    public function saved(Task $model)
    {
        RedisHandler::syncMsgTask($model);
//        RedisHandler::rebuild();
    }

//    public function deleted(Task $model)
//    {
//        RedisHandler::clearTask($model);
//    }
}